From: Jasper St. Pierre Date: Thu, 11 Sep 2014 21:36:40 +0000 (-0600) Subject: search: Don't bother clearing the result display twice X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2146 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b9b4886a6fec0d99ae75310b3103d2945a84bcc1;p=gnome-shell.git search: Don't bother clearing the result display twice It's just extra work, and breaks our hide/show hack to prevent the flashing on search results. --- diff --git a/js/ui/search.js b/js/ui/search.js index 47ab3acdc..80b2d08fc 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -335,9 +335,10 @@ const SearchResultsBase = new Lang.Class({ let hasMoreResults = results.length < providerResults.length; this._ensureResultActors(results, Lang.bind(this, function(successful) { - this._clearResultDisplay(); - if (!successful) + if (!successful) { + this._clearResultDisplay(); return; + } // To avoid CSS transitions causing flickering when // the first search result stays the same, we hide the